var seeSvc = require("../../services/seeSvc");
var selfMediaSvc = require("../../services/selfMediaSvc");
//乐看首页
exports.index = function (req, res) {
    res.render("see/index");
};
//媒体首页
exports.mediaHome = function (req, res) {
    res.render("see/mediaHome");
};
//乐看推荐获取轮播图 top10
exports.getRecommendMain = function (req, res) {
    seeSvc.getRecommendMain(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取推荐分页信息
exports.getMainHotAdvList = function (req, res) {
    seeSvc.getMainHotAdvList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐看首页轮播
exports.getCarouselList = function (req, res) {
    seeSvc.getCarouselList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页分类
exports.getCategoryList = function (req, res) {
    seeSvc.getCategoryList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页推荐广告列表
exports.getRecommendList = function (req, res) {
    seeSvc.getRecommendList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页企业广告列表
exports.getEnterpriseList = function (req, res) {
    seeSvc.getEnterpriseList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页自媒体广告列表
exports.getMediaList = function (req, res) {
    seeSvc.getMediaList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页城市列表
exports.getCityList = function (req, res) {
    seeSvc.getCityList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页城市广告列表
exports.getCityAdvList = function (req, res) {
    seeSvc.getCityAdvList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页传统广告列表
exports.getTraditionList = function (req, res) {
    seeSvc.getTraditionList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页人气分页列表
exports.getHotAdvList = function (req, res) {
    seeSvc.getHotAdvList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取主页静态广告列表
exports.getStaticList = function (req, res) {
    seeSvc.getStaticList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id获取企业信息
exports.getUserInfo = function (req, res) {
    seeSvc.getUserInfo(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 关注
exports.getFollowAdd = function (req, res) {
    seeSvc.getFollowAdd(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 关注id 取消关注
exports.getFollowDelete = function (req, res) {
    seeSvc.getFollowDelete(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 获取视频列表
exports.getUserAdvList = function (req, res) {
    seeSvc.getUserAdvList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 获取相册列表
exports.getAllAlbumByUserId = function (req, res) {
    seeSvc.getAllAlbumByUserId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 获取产品列表
exports.getAllProductByUserId = function (req, res) {
    seeSvc.getAllProductByUserId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//广告视频
exports.adVideo = function (req, res) {
    res.render("see/adVideo");
};
//获取播放视频信息
exports.getAdvById = function (req, res) {
    seeSvc.getAdvById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过视频id获取相关推荐信息
exports.getAdvRecommendByAdvId = function (req, res) {
    seeSvc.getAdvRecommendByAdvId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};

//我的关注
exports.myAttention = function (req, res) {
    res.render("see/myAttention");
};
//乐看集市
exports.market = function (req, res) {
    res.render("see/market");
};
//乐看-企业广告
exports.enterpriseAd = function (req, res) {
    res.render("see/enterpriseAd");
};
//乐看-企业广告轮播图
exports.getEnterpriseCarouselList = function (req, res) {
    seeSvc.getEnterpriseCarouselList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐看-企业广告分类
exports.getEnterpriseCategoryList = function (req, res) {
    seeSvc.getEnterpriseCategoryList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐看-获取企业广告热度类型列表
exports.getEnterpriseHotAdvTypeList = function (req, res) {
    seeSvc.getEnterpriseHotAdvTypeList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐看-获取企业广告热度列表
exports.getEnterpriseHotAdvList = function (req, res) {
    seeSvc.getEnterpriseHotAdvList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐看-企业广告详情
exports.adDetails = function (req, res) {
    res.render("see/adDetails1");
};
//乐看-企业广告详情-分享
exports.adDetails1 = function (req, res) {
    res.render("see/adDetails");
};
//乐看-获取企业广告视频信息
exports.getEnterpriseAdvById = function (req, res) {
    seeSvc.getEnterpriseAdvById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 视频id state点赞状态 1点赞0取消点赞
exports.getPraise = function (req, res) {
    seeSvc.getPraise(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//通过用户id 视频id state收藏状态 1收藏0取消收藏
exports.getCollection = function (req, res) {
    seeSvc.getCollection(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//播放完成给用户的积分
exports.endPlayEnterpriseAdvById = function (req, res) {
    seeSvc.endPlayEnterpriseAdvById(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取企业信息
exports.getEnterpriseId = function (req, res) {
    seeSvc.getEnterpriseId(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取企业历史发布列表
exports.getEnterpriseReleaseAdvList = function (req, res) {
    seeSvc.getEnterpriseReleaseAdvList(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//获取企业广告分类数据
exports.getEnterpriseListByCategory = function (req, res) {
    seeSvc.getEnterpriseListByCategory(req.body, null, function (b) {
        if (b.error || b.json.code !== 200) {
            res.send(b.json);
        } else {
            res.send(b.body);
        }
    });
};
//乐看-二级分类列表
exports.enterpriseAdpage = function (req, res) {
    res.render("see/enterpriseAdpage");
};
//乐看-频道导航
exports.channelNav = function (req, res) {
    res.render("see/channelNav");
};
//摄影
exports.photography = function (req, res) {
    res.render("see/photography");
};
//招聘
exports.recruitPage = function (req, res) {
    res.render("see/recruitPage");
};
//招聘搜索
exports.recruitScreen = function (req, res) {
    res.render("see/recruitScreen");
};
//招聘搜索结果
exports.recruitScreenResult = function (req, res) {
    res.render("see/recruitScreenResult");
};
//招聘视频页
exports.recruitVideo = function (req, res) {
    res.render("see/recruitVideo");
};
//公司信息
exports.companyInfo = function (req, res) {
    res.render("see/companyInfo");
};
//历史观看
exports.history = function (req, res) {
    res.render("see/history");
};
//轮播跳转页面
exports.carouselsPage = function (req, res) {
    res.render("see/carouselsPage");
};